<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib uri="/struts-tags" prefix="s"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<base href="<%=basePath%>">

		<title>My JSP 'testDwr.jsp' starting page</title>

		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">
		<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
		<script type='text/javascript' src='/admin/dwr/interface/shareDetailJS.js'></script>
 		<script type='text/javascript' src='/admin/dwr/engine.js'></script>
		

	</head>

	<body onload=newS()>
		<table cellpadding="0" cellspacing="0" border="1" class="tablesize">
			<tr>
				<td>
					<div id="_div" class="tddiv">
					</div>
				</td>
			</tr>
		</table>
		<script type="text/javascript">
		function newS(){
			shareDetailJS.selectShareDetailTabs('99F848335675',nCallBack);
		};
		function nCallBack(sa){
		
			var s="<table width='98%' class='tab2' id='_tab'><tr class='line1'><td>产品代码</td><td>产品名称</td><td>净值日期</td><td>分红方式</td><td>产品净值</td><td>持有份额</td><td>产品总值</td><td>渠道</td></tr>";
		 	for (var i=0;i<3; i ++) { 
				s+= "<tr><td id='CAccounttype"+i+"'>"+sa[0].fundAcco+"</td><td id='sa"+i+"'></td><td id='sa"+i+"'>"+sa.oriBalance+"</td></tr>";
			}
			s+="</table>"
				document.getElementById('_div').innerHTML=s;
				console.log(sa[0]);
			}
		</script>
	</body>
</html>
